package com.zj.classwork;
import java.util.Scanner;
public class ClassWork9 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入等腰三角形的行数：");
        int value= input.nextInt();
        for(int i=0;i<value;i++)
        {
            for(int j=0;j<value-i-1;j++)
            {
                System.out.print(" ");
            }
            for (int t=0;t<2*i+1;t++)
            {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
